﻿using Ewell.BizComponent.UI.Core.VievModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.UI.Person.ViewModel
{
    /// <summary>
    /// 患者建档主类
    /// </summary>
    public class CreatePersonVm:ViewModelBase
    {
        /// <summary>
        /// 建档控件
        /// </summary>
        private List<PersonControlVm> _personControlList;
        public List<PersonControlVm> personControlList
        {
            get => _personControlList;
            set
            {
                if(_personControlList != value)
                {
                    _personControlList = value;
                    OnPropertyChanged(nameof(personControlList));
                }
            }
        }
        /// <summary>
        /// 个人信息控件
        /// </summary>
        private List<PersonControlVm> _ownerControlList;
        public List<PersonControlVm> ownerControlList
        {
            get => _ownerControlList;
            set
            {
                if (_ownerControlList != value)
                {
                    _ownerControlList = value;
                    OnPropertyChanged(nameof(ownerControlList));
                }
            }
        }
        /// <summary>
        /// 联系人控件
        /// </summary>
        private List<PersonControlVm> _contactControlList;
        public List<PersonControlVm> contactControlList
        {
            get => _ownerControlList;
            set
            {
                if (_ownerControlList != value)
                {
                    _ownerControlList = value;
                    OnPropertyChanged(nameof(ownerControlList));
                }
            }
        }
    }
}
